[NSString hash] gives me negative value

Posted by Thierryb on Stack Overflow See other posts from Stack Overflow or by Thierryb
Published on 2010-04-17T00:36:18Z Indexed on 2010/04/17 0:43 UTC
Read the original article Hit count: 223

Filed under:

Hello,

I am generating a hash from a NSString, using [myString hash] and the result I get is a negative value.

The Apple's documentation is saying :

  • (NSUInteger)hash

Return Value An unsigned integer that can be used as

Any idea ?

Thanks

© Stack Overflow or respective owner

Related posts about iphone-sdk-3.0